|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.engine.ServiceDescriptor
public final class ServiceDescriptor
An object that describes a service made available to actions.
| Field Summary | |
|---|---|
static java.lang.String |
SCOPE_ACTION
The constant representing the action-specific scope. |
static java.lang.String |
SCOPE_EXECUTION
The constant representing the execution-specific scope. |
static java.lang.String |
SCOPE_PROCESS
The constant representing the process-wide scope. |
static java.lang.String |
SCOPE_SESSION
The constant representing the session-specific scope. |
| Constructor Summary | |
|---|---|
ServiceDescriptor(java.lang.String id,
java.lang.String name,
java.lang.String scope,
java.lang.Class type,
IdentifierDescriptor[] identifiers)
Creates a new ServiceDescriptor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getId()
Returns the ID of this service. |
IdentifierDescriptor |
getIdentifier(int index)
Returns the identifiers at the specified index. |
int |
getIdentifierCount()
Returns the number of identifiers declared on this service. |
java.lang.String |
getName()
Returns the name of this service. |
java.lang.String |
getScope()
Returns the scope this service is registered at. |
java.lang.Class |
getType()
Returns the type of this service. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SCOPE_PROCESS
public static final java.lang.String SCOPE_SESSION
public static final java.lang.String SCOPE_EXECUTION
public static final java.lang.String SCOPE_ACTION
| Constructor Detail |
|---|
public ServiceDescriptor(java.lang.String id,
java.lang.String name,
java.lang.String scope,
java.lang.Class type,
IdentifierDescriptor[] identifiers)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
id - The ID of this service.name - The name of this service.scope - The scope this service is registered at.type - The type of this service.identifiers - The identifiers to register the service under.
java.lang.IllegalArgumentException - If the supplied ID is empty.
java.lang.IllegalArgumentException - If the supplied name is empty.
java.lang.IllegalArgumentException - If the supplied scope is not one of
application, session, execution, or action.
java.lang.IllegalArgumentException - If the supplied type is not a public,
concrete class with at least one public constructor.
java.lang.IllegalArgumentException - If the same identifier name is listed more
than once in the supplied identifier array.
java.lang.NullPointerException - If the supplied ID is null.
java.lang.NullPointerException - If the supplied name is null.
java.lang.NullPointerException - If the supplied scope is null.
java.lang.NullPointerException - If the supplied type is null.
java.lang.NullPointerException - If the supplied identifier array or any of its
elements are null.| Method Detail |
|---|
public java.lang.String getId()
public java.lang.String getName()
public java.lang.String getScope()
public java.lang.Class getType()
public int getIdentifierCount()
public IdentifierDescriptor getIdentifier(int index)
throws java.lang.IndexOutOfBoundsException
java.lang.IndexOutOfBoundsException - If the supplied index is less than zero
or greater than or equal to this service's identifiers count.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||